package com.dotflat.fin.service;

import com.dotflat.fin.domain.Wallet;
import com.dotflat.rest.service.AreableObjectBaseService;
import com.matt.commons.dto.sso.StaffDTO;
import com.matt.domain.Clientele;

/**
 * 钱包service
 *
 * @author ：Ron
 * @date ：Created in 2020/10/30 13:06
 */

public interface WalletService extends AreableObjectBaseService<Wallet> {

    Wallet queryWalletByClientele(Clientele clientele);

    Wallet update(Wallet wallet);

    Integer underWayAmount(StaffDTO user);

    void unfrozenAmount(Wallet wallet, long amountToUnfreezen);

}
